<?php

namespace ChanTienGioi\Backend\Models;

class Character extends \Phalcon\Mvc\Model
{

    /**
     *
     * @var integer
     */
    public $ch_id;

    /**
     *
     * @var string
     */
    public $ch_public_id;

    /**
     *
     * @var string
     */
    public $ch_name;

    /**
     *
     * @var string
     */
    public $ch_secret;

    /**
     *
     * @var string
     */
    public $ch_nickname;

    /**
     *
     * @var string
     */
    public $ch_email;

    /**
     *
     * @var string
     */
    public $ch_phone;

    /**
     *
     * @var string
     */
    public $ch_birthday;

    /**
     *
     * @var string
     */
    public $ch_last_server;

    /**
     *
     * @var integer
     */
    public $ch_link_id;

    /**
     *
     * @var string
     */
    public $ch_from;

    /**
     *
     * @var string
     */
    public $ch_created_date;

    public function getSource()
    {
        return 'character';
    }

    /**
     * Independent Column Mapping.
     */
    public function columnMap()
    {
        return array(
            'ch_id' => 'ch_id', 
            'ch_public_id' => 'ch_public_id', 
            'ch_name' => 'ch_name', 
            'ch_secret' => 'ch_secret', 
            'ch_nickname' => 'ch_nickname', 
            'ch_email' => 'ch_email', 
            'ch_phone' => 'ch_phone', 
            'ch_birthday' => 'ch_birthday', 
            'ch_last_server' => 'ch_last_server', 
            'ch_link_id' => 'ch_link_id', 
            'ch_from' => 'ch_from', 
            'ch_created_date' => 'ch_created_date'
        );
    }

}
